package com.zeroone.star.systemhome.service.impl.message;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zeroone.star.project.dto.systemhome.MessageDTO;
import com.zeroone.star.systemhome.entity.MsgInstant;
import com.zeroone.star.systemhome.mapper.message.MessageMapper;
import com.zeroone.star.systemhome.service.message.MessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @BelongsProject: oa-java
 * @BelongsPackage: com.zeroone.star.systemhome.service.impl.message
 * @Author: dashuai
 * @CreateTime: 2024-11-19  10:04
 * @Description: 消息服务实现类
 * @Version: 1.0
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, MsgInstant> implements MessageService {
    @Resource
    private MessageMapper messageMapper;
    @Override
    public List<String> listContents() {
        return messageMapper.selectContents();
    }

    @Override
    public List<MessageDTO> listMessageInfo(String id, String type) {
        return messageMapper.selectMessageInfo(id, type);
    }
}
